package com.easy.common.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.easy.common.enumbean.RoleStatus;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@TableName("sys_role")
public class SysRole extends BaseBean implements Serializable {
    @TableId(type= IdType.AUTO)
    private Integer id;
    @TableField("role_name")
    private String rolename;
    @TableField("role_key")
    private String rolekey;
    private RoleStatus status;
    @TableField(exist = false)
    private List<SysPermission> permissions;
}
